
import request from '@/utils/request.js' 

//保存修改取消申请
export function saveApply(data) {
	return request.post("/blApply/saveApply",data);
}
/* 上传图片 */
export function uploadImg(data) {
	return request.post("/blApply/uploadStaticFile",data,{
		isUploadFile:true
	});
} 

//根据身份证号查询住院信息
export function searchBlh(params) {
	return request.get("/blApply/getBrsyInfo?sfzh="+params);
}

/* 获取历史记录 */
export function getApplyList(data) {
	return request.get("/blApply/getApplyList?pageNum="+data.pageNum+"&pageSize="+data.pageSize);
}
/* 
获取历史记录详情 */
export function getApplyDetails(ID) {
	return request.get("/blApply/getApplyById?id="+ID);
}

/* 获取收货地址列表 */
export function AddressList(params){
	return request.get("/blApply/getAddrList?pageNum="+params.pageNum+"&pageSize="+params.pageSize);
}

/* 获取地址详情 */
export function getAddressDetails(ID) {
	return request.get("/blApply/getAddrById?id="+ID);
}

/* 微信支付 */
export function payOrder(data) {
	return request.post("/blApply/payApplyFee?applyId="+data.applyId,data);
}

/* 校验订单支付状态 */
export function checkOrderPay(data) {
	return request.post("/blApply/checkOrderPayStatus?applyId="+data.applyId,data);
}








